package com.south.base.aspect;

import lombok.extern.slf4j.Slf4j;
import org.aspectj.lang.annotation.After;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.stereotype.Component;

/**
 * @author Administrator
 * @date 2019/5/24 17:41
 */
@Aspect
@Slf4j
@Component
public class ControllerAspect {
    @Pointcut("execution (* com.south.base.controller.*.*(..))")
    public void pointcut() {

    }

    @Before("pointcut()")
    public void before() {
        log.info("before");
    }

    @After("pointcut()")
    public void after() {
        log.info("after");
    }
}
